package com.yanhao.aop.activitymedthod;

import android.os.Trace;
import android.util.Log;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

import javax.security.auth.login.LoginException;

/**
 * activity中onCreate方法的注入
 */
@Aspect
public class ActivityMethodAspectj {

//    private static final String TAG = "Activity_TAG";
//
//    @Around("execution(* android.app.Activity+.onCreate(..))")
//    public void before(ProceedingJoinPoint joinPoint) {
//        Log.e(TAG, "切面检查: --- onCreate 之前 ---");
//    }
//
//    @After("execution(* android.app.Activity+.onCreate(..))")
//    public void after() {
//        Log.e(TAG, "切面检查: --- onCreate 之后 ---");
//    }

}
